﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class mainpage : Form
    {
        public mainpage()
        {
            InitializeComponent();
        }
        public Form backForm { get; set; }
        settings formsettings = new settings();
        songselect formsongselect = new songselect();
        

        private void button1_MouseHover(object sender, EventArgs e)
        {
            
        }

        private void Form2_Load(object sender, EventArgs e)
        {
            FormBorderStyle = FormBorderStyle.None;
            WindowState = FormWindowState.Maximized;
            foreach (Control c in this.Controls)
            {
                if (c is Button || c is Label)
                {
                    int width = this.Width;
                    int height = this.Height;
                    ((Control)c).Location = new Point(c is Label?Convert.ToInt32( c.Location.X - width*0.04):c.Location.X, Convert.ToInt32(c.Location.Y + height * 0.40));
                
                }
            }
            formsettings.backForm = this;
            formsongselect.backForm = this;

        }

        private void button1_MouseLeave(object sender, EventArgs e)
        {
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            formsongselect.Show();
            this.Hide();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            formsettings.Show();
            this.Hide();
        }

        private void label1_MouseHover(object sender, EventArgs e)
        {
            button1.Visible = true;
            button3.Visible = true;
            button4.Visible = true;
            label1.ForeColor = Color.Crimson;
        }

        private void label1_MouseLeave(object sender, EventArgs e)
        {
            label1.ForeColor = Color.Black;
        }
    }
}
